package com.cnhis.drgs.core.entry;

import com.cnhis.drgs.core.util.GeneratorUtil;
import com.cnhis.drgs.util.Util;
import com.cnhis.drgs.vo.KeyValue;

import java.util.Map;

public class entry {

    public static void main(String[] args) {


        String ip = "127.0.0.1";
        String port = "3306";
        String username = "root";
        String password = "123456";
        String schema = "baomidou";
        //表名(多个之间逗号隔开)
        String tableNames = "t_user";

        String projectName = "D:\\mpro\\springboot-learning\\springboot-generator";
        String basePackage = "org.spring.springbootgenerator";
        String moduleName = "sys";
        boolean reserveSchema = true;

        Map<String, Object> items = Util.getSimpleMap(
                new KeyValue<>("model", true),
                new KeyValue<>("dao", true),
                new KeyValue<>("mapper", true),
                new KeyValue<>("service", true),
                new KeyValue<>("serviceImpl", true)
        );

        GeneratorUtil.generator(ip, port, username, password, schema, tableNames, projectName, basePackage, moduleName, reserveSchema, items);


    }
}
